package TransportNetworkResourcesNRMSystem;
/**
 * Generated from IDL enum "UsedAALType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class UsedAALType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _ZERO = 0;
	public static final UsedAALType ZERO = new UsedAALType(_ZERO);
	public static final int _AAL1 = 1;
	public static final UsedAALType AAL1 = new UsedAALType(_AAL1);
	public static final int _AAL2 = 2;
	public static final UsedAALType AAL2 = new UsedAALType(_AAL2);
	public static final int _AAL3 = 3;
	public static final UsedAALType AAL3 = new UsedAALType(_AAL3);
	public static final int _AAL4 = 4;
	public static final UsedAALType AAL4 = new UsedAALType(_AAL4);
	public static final int _AAL5 = 5;
	public static final UsedAALType AAL5 = new UsedAALType(_AAL5);
	public int value()
	{
		return value;
	}
	public static UsedAALType from_int(int value)
	{
		switch (value) {
			case _ZERO: return ZERO;
			case _AAL1: return AAL1;
			case _AAL2: return AAL2;
			case _AAL3: return AAL3;
			case _AAL4: return AAL4;
			case _AAL5: return AAL5;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _ZERO: return "ZERO";
			case _AAL1: return "AAL1";
			case _AAL2: return "AAL2";
			case _AAL3: return "AAL3";
			case _AAL4: return "AAL4";
			case _AAL5: return "AAL5";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected UsedAALType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
